﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LibGreen.Oscar.ObjectManagers.SSI
{
	internal class PermitDenySetting : IServerSideItem
	{
		public PrivacySetting Privacy = PrivacySetting.AllowAllUsers;
		public uint AllowedUserClasses = 0xFFFFFFFF;

		public readonly ushort ID;

		public PermitDenySetting (ushort id)
		{
			this.ID = id;
		}

		#region IServerSideItem Members

		public ushort ItemID
		{
			get { return this.ID; }
		}

		#endregion

		#region IComparable Members

		public int CompareTo (object obj)
		{
			if (obj is PermitDenySetting) {
				return this.ID.CompareTo ((obj as PermitDenySetting).ID);
			}
			return -1;
		}

		#endregion
	}

}
